Function: PDFCallback

CALL:

PDFCallback(event)

DESCRIPTION:

Callback called by a MatlabServer object for generating a pdf document as response

INPUT:

event modelit.webserver.HttpExchange
with the request data and methods to generate a response.

OUTPUT:

      No output
 

EXAMPLE:

   server = modelit.web.server.Server('localhost', 8081, @PDFCallback).start() 
 
   % Open a webbrowser and type: http://localhost:8081 in the address bar
   % Now a pdf appears in the browser.